import store from 'store2'

const _SEARCH_HISTORY ='_search_history'

export default{
  saveHistory(searchTxt){
    store.set(_SEARCH_HISTORY,searchTxt)
  },
  readHistory(){
    return store.get(_SEARCH_HISTORY)
  },
  removeHistory(){
    store.remove(_SEARCH_HISTORY)
  }
}

